Skip to content

Conversation

@parkerduckworth
Copy link
Member

Introduces client.graphQL().get().withConsistencyLevel() to set desired consistency level per query.

Example:

Field name = Field.builder().name("name").build();
Field _additional = Field.builder()
      .name("_additional")
      .fields(new Field[]{Field.builder().name("isConsistent").build()})
      .build();

Result<GraphQLResponse> result = client.graphQL().get()
      .withClassName("Article").withConsistencyLevel(ConsistencyLevel.ALL)
      .withFields(name, _additional)
      .run();

@aliszka aliszka merged commit 737610d into main May 5, 2023
@aliszka aliszka deleted the gql-consistency-level branch July 5, 2023 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants